import xbmc, xbmcgui

ACTION_MOVE_LEFT             = 1 
ACTION_MOVE_RIGHT            = 2
ACTION_MOVE_UP               = 3
ACTION_MOVE_DOWN             = 4
ACTION_PAGE_UP               = 5
ACTION_PAGE_DOWN             = 6
ACTION_SELECT_ITEM           = 7
ACTION_HIGHLIGHT_ITEM        = 8
ACTION_PARENT_DIR            = 9
ACTION_PREVIOUS_MENU         = 10
ACTION_SHOW_INFO             = 11
ACTION_PAUSE                 = 12
ACTION_STOP                  = 13
ACTION_NEXT_ITEM             = 14
ACTION_PREV_ITEM             = 15

class MyClass(xbmcgui.WindowXMLDialog):
  def __init__(self):
    xbmcgui.WindowXMLDialog.__init__(self, "dialogs\DialogOK.xml", __file__);
    self.strActionInfo = xbmcgui.ControlLabel(100, 120, 200, 200, '', 'font13', '0xFFFF00FF')
    self.addControl(self.strActionInfo)
    self.strActionInfo.setLabel('Push BACK')
 
  def onAction(self, action):
    if action == ACTION_PREVIOUS_MENU:
      self.close()
    if action == ACTION_SELECT_ITEM:
      self.message()
 
  def message(self):
    dialog = xbmcgui.Dialog()
    dialog.ok(" My message title", " This is a nice message ")
 
mydisplay = MyClass()
mydisplay .doModal()
del mydisplay